package com.balusoft.client.view;

import com.balusoft.client.presenter.interfaces.IMenuView;
import com.balusoft.client.presenter.interfaces.IMenuView.IMenuPresenter;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Singleton;

@Singleton
public class MenuView extends ReverseCompositeView<IMenuPresenter> implements
		IMenuView {

	private static MenuViewUiBinder uiBinder = GWT
			.create(MenuViewUiBinder.class);

	interface MenuViewUiBinder extends UiBinder<Widget, MenuView> {
	}

	public MenuView() {

		initWidget(uiBinder.createAndBindUi(this));

	}

	@UiHandler("contractor")
	public void onClickContractor(ClickEvent e) {
		presenter.goToContractor();
	}
}
